const env = require('config');

const mysqlConfig = {
  dialect: 'mysql',
  host: env.get('mysql.host'),
  port: env.get('mysql.port'),
  database: env.get('mysql.db'),
  username: env.get('mysql.username'),
  password: env.get('mysql.password'),
  operatorsAliases: false,

  pool: {
    max: 10,
    min: 0,
    acquire: 30000,
    idle: 10000,
  },
};

module.exports = mysqlConfig;
